package com.jy.service;

import com.jy.model.*;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/6 0006.
 */
public interface CopeCreditService {
    //增加流程
    boolean insertCopeApply(CopeCredit mm, String realname, String dbUser, String dbnames);
   // int insertCopeApply(CopeCredit mm);
    /**
     * 查询部门名称
     * @param id
     * @return
     */
    Department searchdept(String id);
    //查用户
    User user(String id);
    //保存文件
    int saveFilename(List<CopeFile> list);
    //查询待审核信息
    List<CopeCredit> getTaskCredit(Integer state, Integer size, String token);

    MoneyManage getsingTaskCredit(String id);
    List<Comment> getCommentInfo(String processId);

     int updatePass(CopeCredit mm,String userId,String pocessId, Map<String, Object> variables,
                          String commons, String id, String tjuser, String btnName,
                          String realname,String cl_time);
    /**
     * 查询名称
     * @param pocessId
     * @return
     */
     String searchName(String pocessId);
    //我的申请信息
    List<CopeCredit> creditList(Integer rows,Integer page,String token);
    CopeCredit getsingCreditApplyInfo(String id);
    List<Comment> getComment(String processId);
    //轨迹明细列表
    List<CopeGuiJi> getLiuChengGuiJi(Integer start, Integer length, String proId);
    List<CopeCredit> guiJiList(Integer state, Integer size, String token);

    CopeCredit getsingGuiJi(String id);
    List<CopeCredit> getBh(String name,String userId);
    CopeCredit getBh2(String name);
    MoneyManage getBh3(String name);
    /**
     * 查看图片
     */
    List <CopeFile>getImgS(String coreId);
    /**
     * 撤销流程
     */
    int iscx(String id,String process_id,String realname,String userId);

    /**
     * @param id
     * @return 发起---提交请假申请 将状态改为1（审核中）
     * pocessId 流程实例id
     * id 主键id
     * dbUser  下一执行人
     *
     */
    public boolean updateState(String pocessId,Map<String,Object> variables,String id,String dbUser,String realname,String cl_time,String userId);
    MoneyManage getBh4(String name,String date);
    MoneyManage getBh5(String name,String date);
    MoneyManage getBh6(String name,String date);

    /**
     * 添加前的查询
     * @param mm
     * @return
     */
    List<CopeCredit> searchApply(CopeCredit mm);
}
